package com.hhsjtest.libbase;

import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public abstract class BaseActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Toast.makeText(getApplicationContext(),this.getClass().getName(),Toast.LENGTH_SHORT).show();
    }

    //R.id.api_url
    public void showApiUrl(int textViewId){
        ((TextView)findViewById(textViewId)).setText(BuildConfig.API_URL);
    }
}
